;
layui.define(["table", "form"], function (exports) {
    tab = layui.table, tab.render({
        id: "LAY-web-list",
        elem: "#LAY-web-list",
        url: layui.setter.base + "admin/clearing/payexport/listJson",
        cols: [[
            {type:"checkbox",fixed:"left"},
            {
                field: "merchName",
                width: 200,
                title: "交易用户信息",
                templet: function (d) {
                    if(null==d.realName || d.realName=='undefined'){
                        return '<span class="layui-badge layui-bg-green">' + d.merchName+"-"+d.merchCode + '</span>';
                    }
                    return '<span class="layui-badge layui-bg-green">' + d.merchName+"-"+d.merchCode + '</span>';
                },
                sort: !0
            }, {
                field: "payer",
                width: 180,
                title: "交易对手信息",
                templet: function (d) {
                    if (d.bizType != "charge")return '<span class="layui-badge layui-bg-green">' + d.accountName+"-"+d.accountNo + '</span>';
                    if (d.bizType == "charge")return '<span class="layui-badge layui-bg-green">' + d.payer + '</span>';
                },
                sort: !0
            }, {
                field: "bizTypeShow",
                title: "交易类型",
                templet: "#buttonTpl",
                minWidth: 100,
                align: "center"
            }, {
                field: "orderNo",
                title: "钱包订单号",
                width: 120
            }, {
                field: "amountShow",
                title: "交易金额(元)",
                templet: "<div><span style='color:#1E9FFF;font-weight: bold;'>{{d.amountFormat}}</span></div>",
                align: "right",
                minWidth: 120
            }, {
                field: "merchFeeFormat",
                title: "手续费(元)",
                templet: "<div><span style='color:#1E9FFF;font-weight: bold;'>{{d.merchFeeFormat}}</span></div>",
                align: "right",
                minWidth: 120
            }, {
                field: "orderStatusShow",
                title: "交易状态",
                templet: function (d) {
                    if (d.orderStatus == "TS") return '<span class="layui-badge layui-bg-green">' + d.orderStatusShow + '</span>';
                    if (d.orderStatus == "TI") return '<span class="layui-badge layui-bg-blue">' + d.orderStatusShow + '</span>';
                    if (d.orderStatus == "TF") return '<span class="layui-badge">' + d.orderStatusShow + '</span>';
                    if (d.orderStatus == "CX") return '<span class="layui-badge layui-bg-orange">' + d.orderStatusShow + '</span>';
                    return '<span class="layui-badge layui-bg-cyan">' + d.orderStatusShow + '</span>';
                },
                minWidth: 100,
                align: "center"
            }, {
                field: "createTime",
                title: "创建时间",
                minWidth: 166
            }
            ]],
        page: !0,
        limit: 10,
        limits: [10, 15, 20, 25, 30],
        text: {none: '暂无相关数据'}
    }), tab.on("tool(LAY-web-list)", function (row) {

    }), exports("payexport", {})
});
